import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/detail_im_entity.g.dart';
import 'dart:convert';
export 'package:wanxiang_app/generated/json/detail_im_entity.g.dart';

@JsonSerializable()
class DetailImEntity {
	@JSONField(name: "Code")
	late int code;
	@JSONField(name: "Data")
	late List<DetailImData> data;
	@JSONField(name: "Msg")
	late String msg;

	DetailImEntity();

	factory DetailImEntity.fromJson(Map<String, dynamic> json) => $DetailImEntityFromJson(json);

	Map<String, dynamic> toJson() => $DetailImEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class DetailImData {
	late int id;
	late String account;
	late String token;
	late String scena;
	@JSONField(name: "is_use")
	late int isUse;
	late String nickname;
	late String plat;
	late String games;
	late String photo;
	@JSONField(name: "account_up")
	late String accountUp;
	@JSONField(name: "account_sc")
	late String accountSc;
	@JSONField(name: "account_group")
	late String accountGroup;
	@JSONField(name: "groups_o")
	late String groupsO;
	@JSONField(name: "groups_t")
	late String groupsT;
	@JSONField(name: "groups_th")
	late String groupsTh;
	@JSONField(name: "is_rest")
	late int isRest;
	@JSONField(name: "order_id")
	late int orderId;
	@JSONField(name: "add_time")
	late String addTime;
	@JSONField(name: "is_hidden")
	late int isHidden;
	@JSONField(name: "update_time")
	late String updateTime;

	DetailImData();

	factory DetailImData.fromJson(Map<String, dynamic> json) => $DetailImDataFromJson(json);

	Map<String, dynamic> toJson() => $DetailImDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}